//
//  HXGuessLikeTCell.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/14.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXGuessLikeTCell.h"
#import "HXGuessLikeModel.h"
#import "HX_Macro.h"
@implementation HXGuessLikeTCell
- (void)setTagModel:(HXGuessLikeModel *)tagModel {
    _tagModel = tagModel;
    [self.imageHeader sd_setImageWithURL:[NSURL URLWithString:tagModel.image]];
    for (int i = 0; i < tagModel.tags_info.count; i ++) {
        UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
        btn.frame = CGRectMake(i * (40 + 10) + 20, 200, 80, 20);
        btn.titleLabel.font = [UIFont systemFontOfSize:12];
        [btn setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
        [btn setTitle:[tagModel.tags_info[i] text]forState:UIControlStateNormal];
        [self.contentView addSubview:btn];
    }
    
}
- (void)setUp {

}
- (void)awakeFromNib {
    self.imageHeader.layer.masksToBounds = YES;
    self.imageHeader.contentMode = UIViewContentModeScaleAspectFill;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
